import { createApp } from "vue";
// 添加这一行导入路由守卫
import "@/utils/permission";
import { Button } from "vant";
import "vant/lib/index.css";
import router from "./router";
import { Tabbar, TabbarItem } from "vant";
import App from "./App.vue";
import { Swipe, SwipeItem } from "vant";
import store from "@/store";
import { Search } from "vant";
import { Grid } from "vant";
import { GridItem } from "vant";
import { Cascader } from "vant";
import { Icon } from "vant";
import { Field, CellGroup } from "vant";
import { Popup } from "vant";

const app = createApp(App);

app.use(Icon);
app.use(Cascader);
app.use(Button);
app.use(Tabbar);
app.use(TabbarItem);
app.use(router);
app.use(Swipe);
app.use(SwipeItem);
app.use(Search);
app.use(Grid);
app.use(GridItem);
app.use(Field);
app.use(CellGroup);
app.use(Popup);
app.use(store);
app.mount("#app");

